package com.dc.dao.impl;

        import com.dc.base.utils.BaseDao;
        import com.dc.dao.UserDao;

        import java.util.List;
        import java.util.Map;

/**
 * Created by Acer on 2019/9/28.
 */
public class UserDaoImpl implements UserDao {
    BaseDao baseDao=new BaseDao();

    @Override
    public List<Map<String, Object>> selectUser(String sql, Object [] parame) throws Exception {
        return baseDao.query(sql,parame);
    }

    @Override
    public int DeleteUser(String sql) throws Exception {
        return baseDao.update(sql);
    }

    @Override
    public int addUser(String sql,Object [] parame) throws Exception {
        return baseDao.update(sql,parame);
    }

    @Override
    public int updateUser(String sql, Object[] parame) throws Exception {
        return baseDao.update(sql,parame);
    }

    @Override
    public List<Map<String, Object>> selectUserid(String sql, Object[] parame) throws Exception {
        return  baseDao.query(sql,parame);
    }


}
